package com.slipper.system.api.dictionary.service;

import com.slipper.common.bo.Result;
import com.slipper.common.feign.ServiceClient;
import com.slipper.common.annotation.FeignRequestMapping;
import com.slipper.system.api.dictionary.bo.DictionaryBO;

import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestBody;

/**
 * 字典信息
 * 
 * @date 2019-10-03 13:56:17
 */
@ServiceClient
public interface IDictionarySv {
    @FeignRequestMapping("/dictionary/queryBy")
    Result<DictionaryBO> queryBy(@RequestBody DictionaryBO bo);
    
    @FeignRequestMapping("/dictionary/queryPage")
    Result<List<DictionaryBO>> queryPage(@RequestBody DictionaryBO bo);
    
    @FeignRequestMapping("/dictionary/queryList")
    Result<List<DictionaryBO>> queryList(@RequestBody DictionaryBO bo);
    
    @FeignRequestMapping("/dictionary/save")
    Result<?> save(@RequestBody DictionaryBO bo);
    
    @FeignRequestMapping("/dictionary/delete")
    Result<?> delete(@RequestBody DictionaryBO bo);

    @FeignRequestMapping("/dictionary/queryDicData")
    Result<List<Map<String, String>>> queryDicData(@RequestBody String dicCode);

    @FeignRequestMapping("/dictionary/queryAllDicData")
    Result<Map<String, List<Map<String, String>>>> queryAllDicData();

    @FeignRequestMapping("/dictionary/querySingleDicData")
    Result<Map<String, String>> querySingleDicData(@RequestBody String dicCode);
}
